package team.scau.laboratory_repair.common.json;

/**
 * @Description:
 * @Author:ZTF
 * @Date:2018/5/23 11:16
 */
public enum StatusCode {
    FATAL_ERROR(-1,"严重错误"),
    ID_NOT_FOUND(-2,"ID不存在"),
    LIST_EMPTY(-3,"查找列表结果为0"),
    NO(1,"执行成功，无状态"),
    FORWARDING(2,"操作成功，需要跳转");

    private String name;
    private Integer id;
    StatusCode(Integer id, String name){
        this.name=name;
        this.id=id;
    }
    public String getName(){return name;}
    public Integer getId(){return id;}
}
